<?php if(!defined('IN_UCHOME')) exit('Access Denied');?><?php subtplcheck('template/default/do_login|template/default/header|template/default/footer', '1262400920', 'template/default/do_login');?><?php $_TPL['nosidebar']=1; ?>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<meta http-equiv="pragma" content="no-cache" />
<title><?php if($_TPL['titles']) { ?><?php if(is_array($_TPL['titles'])) { foreach($_TPL['titles'] as $value) { ?><?php if($value) { ?><?=$value?> - <?php } ?><?php } } ?><?php } ?><?php if($space) { ?><?=$_SN[$space['uid']]?> - <?php } ?><?=$_SCONFIG['sitename']?></title>


<script language="javascript" type="text/javascript" src="source/wtming_js/jquery.1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="source/wtming_js/jquery.suggest15215.js"></script>
<script language="javascript" type="text/javascript" src="source/wtming_js/douban21867.js"></script>
<script language="javascript" type="text/javascript" src="source/wtming_js/DragResize.js"></script>

<script language="javascript" type="text/javascript" src="source/script_cookie.js"></script>
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
<script language="javascript" type="text/javascript" src="source/script_menu.js"></script>
<script language="javascript" type="text/javascript" src="source/script_ajax.js"></script>
<script language="javascript" type="text/javascript" src="source/script_face.js"></script>
<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>

<style type="text/css">
<?php if(!empty($_SGLOBAL['space_theme'])) { ?>
@import url(template/default/style.css);
@import url(theme/<?=$_SGLOBAL['space_theme']?>/style.css);
<?php } else { ?>
@import url(template/<?=$_SCONFIG['template']?>/style.css);
<?php } ?>
<?php if(!empty($_SGLOBAL['space_css'])) { ?>
<?=$_SGLOBAL['space_css']?>
<?php } ?>
</style>
<style type="text/css">
#header{
margin:0 auto;
width:970px;
}

#header #logo {
float:left;
height:60px;
width:293px;
}

.bg-header, #top_nav_bar li a, #top_nav_bar li a span, #top_nav_bar li.down i.downi, #top_nav_bar .down_div .down_bl, #top_nav_bar .down_div .down_br, #top_nav_bar .down_div .down_up, #top_nav_bar li.new i.newi {
background-image:url(http://img.alimama.cn/images/bg/new_header_bg2.gif);
}

#header #logo a {
display:block;
height:42px;
margin:10px 0 0 1px;
width:291px;
}

#header #logo a span {
display:none;
}

#header #top_nav {
background-repeat:no-repeat;
height:60px;
}

#quick_links {
border-bottom:1px solid #E0E0E0;
height:22px;
margin:0 0 0 3px;
}

#quick_links ul {
float:right;
}

#quick_links li.today, #quick_links li.member, #quick_links li.myalimama {
border:0 none;
color:#666666;
}

#quick_links li {
border-left:1px solid #E0E0E0;
float:left;
line-height:16px;
margin:4px 0 0;
padding:0 7px;
}

#quick_links li.myalimama a {
background-position:right -69px;
padding:0 4px 0 0;
}

#quick_links li.myalimama a, #quick_links li.myalimama a span, #quick_links li.myalimama a span i, #top_nav_bar li a, #top_nav_bar li a span {
background-repeat:no-repeat;
display:block;
float:left;
}

#quick_links li a:link, #quick_links li a:visited {
color:#0245DC;
}

#top_nav_bar_quick ul {
color:#4B6486;
float:right;
font-size:12px;
margin:8px 0 0 4px;
}

#top_nav_bar_quick li {
cursor:pointer;
float:left;
margin:0 2px;
}

#top_nav_bar_quick li a {
background-position:right -240px;
color:#4B6486;
float:left;
padding:0 5px 0 0;
}

#top_nav_bar_quick li a, #top_nav_bar_quick li a span, #top_nav_bar_quick li.down i.downi, #top_nav_bar_quick .down_div .down_bl, #top_nav_bar_quick .down_div .down_br, #top_nav_bar_quick .down_div .down_up, #top_nav_bar_quick li.new i.newi {
background-image:url(http://img.alimama.cn/images/bg/new_header_bg2.gif);
}

#quick_links li.myalimama a span i {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent url(http://img.alimama.cn/images/icon/bag.gif) no-repeat scroll left center;
height:16px;
margin:0 2px 0 0;
width:16px;
}

#top_nav_bar_quick li a span {
background-position:left -240px;
color:#4B6486;

display:block;
float:left;
height:27px;
line-height:24px;
padding:0 5px 0 10px;
}

#top_nav_bar_quick li.down {
position:relative;
}

.header_bottom {
border-bottom:1px solid #D9D9D9;
overflow:hidden;
padding:5px 0 10px 0;
height:0px;
}

</style>
<link rel="shortcut icon" href="image/favicon.ico" />
<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=<?=$space['uid']?>" />
</head>
<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>

<div id="header">
<?php if($_SGLOBAL['ad']['header']) { ?><div id="ad_header"><?php adshow('header'); ?></div><?php } ?>
<div class="bg-header" id="logo">
<a href="./"><img alt="维他命 Wtming.com" src="public/img/index-4.gif"/></a>
</div>
<div id="top_nav">
<div id="quick_links">
<ul>
<?php if($_SGLOBAL['supe_uid']) { ?>
<li class="today"><a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>" class="loginName"><?=$_SN[$_SGLOBAL['supe_uid']]?></a></li>
<?php if($_SN[$_SGLOBAL['supe_uid']]!=$_SGLOBAL['username']) { ?>(<?=$_SGLOBAL['supe_username']?>)<?php } ?>
<li><a href="space.php?do=home">个人首页</a> </li>
<li> <a href="space.php?do=friend">好友</a></li>
<li> <a href="space.php?do=pm<?php if(!empty($_SGLOBAL['member']['newpm'])) { ?>&filter=newpm<?php } ?>">消息<?php if(!empty($_SGLOBAL['member']['newpm'])) { ?>(新)<?php } ?></a></li> 
<li> <a href="cp.php?ac=common&op=logout">退出</a></li>
<?php } else { ?>
<li class="today">欢迎您！</li>
<li> <a href="do.php?ac=<?=$_SCONFIG['login_action']?>">登录</a> 或 
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>">注册</a></li>
<?php } ?>
</ul>
</div>
<div id="top_nav_bar_quick">

<ul>
<li class="first current"><a href="./"><span>首页</span></a></li>
<li><a href="site.php?ac=show&fid=4"><span>明星</span></a></li>
<li><a href="site.php?ac=show&fid=67"><span>时尚品</span></a></li>
<li><a href="site.php?ac=show&fid=66"><span>品牌</span></a></li>
<li class="first"><a href="site.php?ac=hot"><span>正流行</span></a></li>
</ul>

</div>
</div>
<div class="header_bottom"></div>
</div>

<div id="wrap">

<?php if(empty($_TPL['nosidebar'])) { ?>
<div id="main">
<div id="app_sidebar">
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul class="app_list" id="default_userapp">
<li><img src="image/silk/anchor.png"><a href="site.php?ac=my_profile">档案</a></li>
<li><img src="image/silk/hourglass.png"><a href="space.php?do=doing">记录</a></li>
<li><img src="image/app/album.gif"><a href="space.php?do=album">相册</a><em><a href="cp.php?ac=upload">上传</a></em></li>
<li><img src="image/app/blog.gif"><a href="space.php?do=blog">日志</a><em><a href="cp.php?ac=blog">发表</a></em></li>
<li><img src="image/silk/group.png"><a href="space.php?do=thread">群组</a><em><a href="cp.php?ac=thread">话题</a></em></li>
<li><img src="image/app/share.gif"><a href="space.php?do=share">分享</a></li>

<?php if($_SCONFIG['my_status']) { ?>
<?php if(is_array($_SGLOBAL['userapp'])) { foreach($_SGLOBAL['userapp'] as $value) { ?>
<li><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>"><?=$value['appname']?></a></li>
<?php } } ?>
<?php } ?>
</ul>

<?php if($_SCONFIG['my_status']) { ?>
<ul class="app_list" id="my_userapp">
<?php if(is_array($_SGLOBAL['my_menu'])) { foreach($_SGLOBAL['my_menu'] as $value) { ?>
<li id="userapp_li_<?=$value['appid']?>"><img src="http://appicon.manyou.com/icons/<?=$value['appid']?>"><a href="userapp.php?id=<?=$value['appid']?>" title="<?=$value['appname']?>"><?=$value['appname']?></a></li>
<?php } } ?>
</ul>
<?php } ?>

<?php if($_SGLOBAL['my_menu_more']) { ?>
<p class="app_more"><a href="javascript:;" id="a_app_more" onclick="userapp_open();" class="off">展开</a></p>
<?php } ?>

<?php if($_SCONFIG['my_status']) { ?>
<div class="app_m">
<ul>
<li><img src="image/app_add.gif"><a href="cp.php?ac=userapp&my_suffix=%2Fapp%2Flist" class="addApp">添加应用</a></li>
<li><img src="image/app_set.gif"><a href="cp.php?ac=userapp&op=menu" class="myApp">管理应用</a></li>
</ul>
</div>
<?php } ?>

<?php } else { ?>
<div class="bar_text">
<form id="loginform" name="loginform" action="do.php?ac=<?=$_SCONFIG['login_action']?>&ref" method="post">
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" />
<p class="title">登录站点</p>
<p>用户名</p>
<p><input type="text" name="username" id="username" class="t_input" size="15" value="" /></p>
<p>密码</p>
<p><input type="password" name="password" id="password" class="t_input" size="15" value="" /></p>
<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" checked /><label for="cookietime">记住我</label></p>
<p>
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit"  />
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>" class="button">注册</a>
</p>
</form>
</div>
<?php } ?>
</div>

<div id="mainarea">

<?php if($_SGLOBAL['ad']['contenttop']) { ?><div id="ad_contenttop"><?php adshow('contenttop'); ?></div><?php } ?>
<?php } ?>

<?php } ?>


<form id="loginform" name="loginform" action="do.php?ac=<?=$_SCONFIG['login_action']?>&<?=$url_plus?>&ref" method="post" class="c_form">
<table cellpadding="0" cellspacing="0" class="formtable">
<caption>
<h2>请登录</h2>
<p>如果您在本站已拥有帐号，请使用已有的帐号信息直接进行登录即可，不需重复注册。</p>
</caption>
<?php if($invitearr) { ?>
<tr>
<th width="100">好友邀请</th>
<td>
<a href="space.php?<?=$url_plus?>" target="_blank"><img src="<?php echo avatar($invitearr[uid],small); ?>" alt="<?=$_SN[$invitearr['uid']]?>" id="avatar" align="absmiddle" /></a>
<a href="space.php?<?=$url_plus?>" target="_blank"><?=$_SN[$invitearr['uid']]?></a>
</td>
</tr>
<?php } ?>

<?php if($_SCONFIG['seccode_login']) { ?>
<?php if($_SGLOBAL['input_seccode']) { ?>
<tr>
<th width="100">&nbsp;</th>
<td>
请通过下面的验证后，再提交登录
</td>
</tr>
<?php } ?>
<?php if($_SCONFIG['questionmode']) { ?>
<tr>
<th width="100" style="vertical-align: top;">请先回答问题</th>
<td>
<p><?php question(); ?></p>
<input type="text" id="seccode" name="seccode" value="" tabindex="1" class="t_input"<?php if(empty($_SGLOBAL['input_seccode'])) { ?> onBlur="checkSeccode()"<?php } ?> />&nbsp;<span id="checkseccode">&nbsp;</span>
</td>
</tr>
<?php } else { ?>
<tr>
<th width="100" style="vertical-align: top;">验证码</th>
<td>
<script>seccode();</script>
<p>请输入上面的4位字母或数字，看不清可<a href="javascript:updateseccode()">更换一张</a></p>
<input type="text" id="seccode" name="seccode" value="" tabindex="1" class="t_input"<?php if(empty($_SGLOBAL['input_seccode'])) { ?> onBlur="checkSeccode()"<?php } ?> />&nbsp;<span id="checkseccode">&nbsp;</span>
</td>
</tr>
<?php } ?>
<?php } ?>

<tbody style="display:<?php if($_SGLOBAL['input_seccode']) { ?>none<?php } ?>;">
<tr><th width="100"><label for="username">用户名</label></th><td><input type="text" name="username" id="username" class="t_input" value="<?=$membername?>" tabindex="2" /></td></tr>
<tr><th width="100"><label for="password">密　码</label></th><td><input type="password" name="password" id="password" class="t_input" tabindex="3" value="<?=$password?>" /></td></tr>
<tr>
<th width="100">&nbsp;</th>
<td>
<input type="checkbox" id="cookietime" name="cookietime" value="315360000" <?=$cookiecheck?> style="margin-bottom: -2px;"><label for="cookietime">下次自动登录</label>
</td>
</tr>
</tbody>
<tr><th width="100">&nbsp;</th><td>
<input type="hidden" name="refer" value="<?=$refer?>" />
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit" tabindex="5" />
<a href="do.php?ac=lostpasswd">忘记密码?</a>
</td></tr>
</table>
<input type="hidden" name="formhash" value="<?php echo formhash(); ?>" /></form>

<script type="text/javascript">
var lastSecCode = '';
function checkSeccode() {
var seccodeVerify = $('seccode').value;
if(seccodeVerify == lastSecCode) {
return;
} else {
lastSecCode = seccodeVerify;
}
ajaxresponse('checkseccode', 'op=checkseccode&seccode=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(seccodeVerify) : seccodeVerify));
}
function ajaxresponse(objname, data) {
var x = new Ajax('XML', objname);
x.get('do.php?ac=<?=$_SCONFIG['register_action']?>&' + data, function(s){
var obj = $(objname);
s = trim(s);
if(s.indexOf('succeed') > -1) {
obj.style.display = '';
obj.innerHTML = '<img src="image/check_right.gif" width="13" height="13">';
obj.className = "warning";
} else {
warning(obj, s);
}
});
}
function warning(obj, msg) {
if((ton = obj.id.substr(5, obj.id.length)) != 'password2') {
$(ton).select();
}
obj.style.display = '';
obj.innerHTML = '<img src="image/check_error.gif" width="13" height="13"> &nbsp; ' + msg;
obj.className = "warning";
}

</script>

<?php if($_SGLOBAL['input_seccode']) { ?>
<script>
$('seccode').style.background = '#FFFFCC';
$('seccode').focus();
</script>
<?php } ?>


<div class="c_form">
<table cellpadding="0" cellspacing="0" class="formtable">
<caption>
<h2>还没有注册吗？</h2>
<p>如果还没有本站的通行帐号，请先注册一个属于自己的帐号吧。</p>
</caption>
<tr>
<td>
<a href="do.php?ac=<?=$_SCONFIG['register_action']?>" style="display: block; margin: 0 110px 2em; width: 100px; border: 1px solid #486B26; background: #76A14F; line-height: 30px; font-size: 14px; text-align: center; text-decoration: none;"><strong style="display: block; border-top: 1px solid #9EBC84; color: #FFF; padding: 0 0.5em;">立即注册</strong></a>
</td>
</tr>
</table>
</div>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-112862-2");
pageTracker._trackPageview();
} catch(err) {}</script>

<?php if(empty($_TPL['nosidebar'])) { ?>
<?php if($_SGLOBAL['ad']['contentbottom']) { ?><br style="line-height:0;clear:both;"/><div id="ad_contentbottom"><?php adshow('contentbottom'); ?></div><?php } ?>
</div>

<!--/mainarea-->
</div>
<!--/main-->
<?php } ?>

<div id="footer" title="<?php echo debuginfo(); ?>">
<p class="r_option">
<a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP"><img src="image/top.gif" alt="" style="padding: 5px 6px 6px;" /></a>
</p>

<?php if($_SGLOBAL['ad']['footer']) { ?>
<p style="padding:5px 0 10px 0;"><?php adshow('footer'); ?></p>
<?php } ?>

<p>
<?=$_SCONFIG['sitename']?> - 
<a href="mailto:<?=$_SCONFIG['adminemail']?>">联系我们</a>
<?php if($_SCONFIG['miibeian']) { ?> - <a  href="http://www.miibeian.gov.cn" target="_blank"><?=$_SCONFIG['miibeian']?></a><?php } ?>
</p>
</div>
</div>
<!--/wrap-->

<?php if($_SGLOBAL['appmenu']) { ?>
<ul id="ucappmenu_menu" class="dropmenu_drop" style="display:none;">
<li><a href="<?=$_SGLOBAL['appmenu']['url']?>" title="<?=$_SGLOBAL['appmenu']['name']?>" target="_blank"><?=$_SGLOBAL['appmenu']['name']?></a></li>
<?php if(is_array($_SGLOBAL['appmenus'])) { foreach($_SGLOBAL['appmenus'] as $value) { ?>
<li><a href="<?=$value['url']?>" title="<?=$value['name']?>" target="_blank"><?=$value['name']?></a></li>
<?php } } ?>
</ul>
<?php } ?>

<?php if($_SGLOBAL['supe_uid']) { ?>
<?php if(!isset($_SCOOKIE['checkpm'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=pm&op=checknewpm&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php if(!isset($_SCOOKIE['synfriend'])) { ?>
<script language="javascript"  type="text/javascript" src="cp.php?ac=friend&op=syn&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>
<?php } ?>
<?php if(!isset($_SCOOKIE['sendmail'])) { ?>
<script language="javascript"  type="text/javascript" src="do.php?ac=sendmail&rand=<?=$_SGLOBAL['timestamp']?>"></script>
<?php } ?>

<?php if($_SGLOBAL['ad']['couplet']) { ?>
<script language="javascript" type="text/javascript" src="source/script_couplet.js"></script>
<div id="uch_couplet" style="z-index: 10; position: absolute; display:none">
<div id="couplet_left" style="position: absolute; left: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<div id="couplet_rigth" style="position: absolute; right: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php adshow('couplet'); ?>
</div>
<script type="text/javascript">
lsfloatdiv('uch_couplet', 0, 0, '', 0).floatIt();
</script>
</div>
<?php } ?>

</body>
</html>
<?php } ?>


<?php ob_out();?>